(Fcall_interactively): When checking to see if doprnt hit
authorMiles Bader <miles@gnu.org>
Tue, 25 Jun 2002 12:58:54 +0000 (12:58 +0000)
committerMiles Bader <miles@gnu.org>
Tue, 25 Jun 2002 12:58:54 +0000 (12:58 +0000)
the end of callint_message, allow for a terminating '\0'.

src/callint.c

index d172c118a929996a357695178764c5dfa54ca6ca..3eca790c6df51fa2b95c55637c72de8c682421ba 100644 (file)
@@ -464,7 +464,7 @@ supply if the command inquires which events were used to invoke it.  */)
          int nchars = doprnt (callint_message, callint_message_size,
                               prompt1, (char *)0,
                               j - 1, (char **) argstrings + 1);
-         if (nchars < callint_message_size)
+         if (nchars < callint_message_size - 1)
            break;
          callint_message_size *= 2;
          callint_message